<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/semi/semifreight/SemiFreight.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/semi/semifreight/SemiFreight.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'id',
                footer: "Foots",
                cnName: '半成品货位',
                name: 'semifreight/SemiFreight',
                url: "/SemiFreight/",
                sortName: "id"
            });
            const editFormFields = ref({"SemiWarehouseNo":"","SemiFreightName":"","Shelves":"","RowHang":"","Ccolumn":"","MaximumCapacity":"","Used":"","SemiFreightDate":"","SemiFreightDesc":""});
            const editFormOptions = ref([[{"title":"仓库","field":"SemiWarehouseNo","type":"text"}],
                              [{"title":"货位名称","field":"SemiFreightName","type":"text"}],
                              [{"title":"货架","field":"Shelves","type":"text"}],
                              [{"title":"行","field":"RowHang","type":"text"}],
                              [{"title":"列","field":"Ccolumn","type":"text"}],
                              [{"title":"最大容量","field":"MaximumCapacity","type":"text"}],
                              [{"title":"已使用","field":"Used","type":"text"}],
                              [{"title":"创建时间","field":"SemiFreightDate","type":"datetime"}],
                              [{"title":"备注","field":"SemiFreightDesc","type":"textarea"}]]);
            const searchFormFields = ref({"SemiWarehouseNo":"","SemiFreightName":"","Shelves":"","RowHang":"","Ccolumn":"","SemiFreightDesc":""});
            const searchFormOptions = ref([[{"title":"仓库","field":"SemiWarehouseNo","type":"like"},{"title":"货位名称","field":"SemiFreightName","type":"text"},{"title":"货架","field":"Shelves","type":"text"},{"title":"行","field":"RowHang","type":"text"},{"title":"列","field":"Ccolumn","type":"text"},{"title":"备注","field":"SemiFreightDesc","type":"like"}]]);
            const columns = ref([{field:'id',title:'主键ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'SemiWarehouseNo',title:'仓库',type:'string',width:220,align:'left',sort:true},
                       {field:'SemiFreightName',title:'货位名称',type:'string',width:220,align:'left'},
                       {field:'Shelves',title:'货架',type:'string',width:220,align:'left'},
                       {field:'RowHang',title:'行',type:'string',width:220,align:'left'},
                       {field:'Ccolumn',title:'列',type:'string',width:220,align:'left'},
                       {field:'MaximumCapacity',title:'最大容量',type:'string',width:220,align:'left'},
                       {field:'Used',title:'已使用',type:'string',width:220,align:'left'},
                       {field:'SemiFreightDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'SemiFreightDesc',title:'备注',type:'string',width:220,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
